<template>
	<div class="page">
		<div class="content_wrap">
			<div class="pic_box">
				<ul>
					<li class="li" v-for="item in imgList"><img :src="item.src" alt="" /></li>
				</ul>
			</div>
		</div>
	</div>
</template>

<script setup>
const imgList = [];

for (let i = 1; i <= 6; i++) {
	let obj = {
		index: i,
		src: require('@admin/assets/img/admin-00' + i + '.jpg')
	};
	imgList.push(obj);
}
</script>


<style lang="scss" scoped>
@import '@admin/assets/css/common';
.page {
	height: 100%;
	background: #fff;

	.content_wrap {
		display: flex;
		justify-content: center;
		align-items: center;
		perspective: rem(1000);
		/*透视 - 近大远小*/
	}

	.pic_box {
		margin: rem(120) auto 0;
		transform: rotateX(-30deg);
		transform-style: preserve-3d;
	}

	.pic_box ul {
		width: rem(300);
		height: rem(240);
		/* border: 1px solid red; */
		position: relative;
		transform-style: preserve-3d;
		animation: _rotate 10s linear infinite;
	}

	.pic_box ul li {
		position: absolute;
		left: 0;
		right: 0;
		width: rem(300);
		height: rem(240);
		border: rem(1) solid #eee;
		background: #000;
		box-shadow: rem(1) rem(1) rem(20) #fff;
	}

	.pic_box ul li img {
		width: 100%;
		height: 100%;
		-webkit-box-reflect: below rem(40) -webkit-linear-gradient(top, rgba(250, 250, 250, 0), rgba(250, 250, 250, 0) 30%, rgba(250, 250, 250, 0.5));
	}

	.pic_box ul li:nth-child(1) {
		transform: rotateY(0deg) translateZ(rem(300));
	}

	.pic_box ul li:nth-child(2) {
		transform: rotateY(60deg) translateZ(rem(300));
	}

	.pic_box ul li:nth-child(3) {
		transform: rotateY(120deg) translateZ(rem(300));
	}

	.pic_box ul li:nth-child(4) {
		transform: rotateY(180deg) translateZ(rem(300));
	}

	.pic_box ul li:nth-child(5) {
		transform: rotateY(240deg) translateZ(rem(300));
	}

	.pic_box ul li:nth-child(6) {
		transform: rotateY(300deg) translateZ(rem(300));
	}

	.pic_box ul:hover {
		animation-play-state: paused;
	}

	.pic_box ul li:hover img {
		opacity: 0.5;
		cursor: pointer;
		animation-play-state: paused;
	}

	@keyframes _rotate {
		0% {
			transform: rotateY(0deg);
		}
		100% {
			transform: rotateY(360deg);
		}
	}
}
</style>
